//
//  recommendWorksDetailCell.m
//  Wedding fantastic
//
//  Created by dllo on 15/7/6.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "recommendWorksDetailCell.h"

#define kHeight [UIScreen mainScreen].bounds.size.height
#define kWidth [UIScreen mainScreen].bounds.size.width

@implementation recommendWorksDetailCell
- (void)dealloc {
    [_myImageView release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myImageView = [[UIImageView alloc] init];
        self.myImageView.backgroundColor = [UIColor colorWithRed:241 / 255.0 green:241 / 255.0 blue:240 / 255.0 alpha:1];
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
    }
    return self;
}
// 布局子视图
- (void)layoutSubviews {
    [super layoutSubviews];
    self.myImageView.frame = CGRectMake(10 * kWidth / 375, 10 * kHeight / 667, (kWidth - 20 * kWidth / 375) , 280 * kHeight / 667);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
